<template>
  <div class="info-item">
    <h3>{{title}}</h3>
    <p v-html="content"></p>
    <div class="info-item-img" v-if="img">
      <img :src="img" alt="">
    </div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      default: ''
    },
    content: {
      type: String,
      default: ''
    },
    img: {
      type: String,
      default: ''
    }
  }
}
</script>

<style scoped lang="scss">
.info-item {
  width: 5.9rem;
  margin: auto;
  h3 {
    line-height: 0.46rem;
    font-size: 0.3rem;
    color: #333333;
    font-weight: bold;
    margin: 0.15rem 0;
  }
  p {
    line-height: 0.46rem;
    font-size: 0.28rem;
    color: #666666;
    text-indent: 2em;
  }
  .info-item-img {
    width: 100%;
    img {
      width: 100%;
      height: auto;
    }
  }
}
</style>
